// -----------------------------------------------------------------------
//  <copyright file="DaprPlusExtension.cs" company="LiuliuSoft">
//      Copyright (c) 2022-2022 DaprPlus. All rights reserved.
//  </copyright>
//  <site>https://www.dapr.plus</site>
//  <last-editor>郭明锋</last-editor>
//  <last-date>2022-11-09 9:47</last-date>
// -----------------------------------------------------------------------

namespace DaprPlus.Exceptions;

/// <summary>
/// DaprPlus扩展异常
/// </summary>
public class DaprPlusException : Exception
{
    /// <summary>
    /// 初始化一个<see cref="DaprPlusException"/>类型的新实例
    /// </summary>
    public DaprPlusException()
    { }

    /// <summary>
    /// 初始化一个<see cref="DaprPlusException"/>类型的新实例
    /// </summary>
    /// <param name="message">描述错误的消息</param>
    public DaprPlusException(string message)
        : base(message)
    { }

    /// <summary>
    /// 初始化一个<see cref="DaprPlusException"/>类型的新实例
    /// </summary>
    /// <param name="message">异常消息</param>
    /// <param name="innerException">用于封装在<see cref="DaprPlusException"/>内部的异常实例</param>
    public DaprPlusException(string message, Exception innerException)
        : base(message, innerException)
    { }
}
